package cn.lyl.product.mapper;

import cn.lyl.product.domain.Product;
import cn.lyl.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2023-02-20
 */
public interface ProductMapper extends BaseMapper<Product> {

    void onsale(@Param("id")Long id, @Param("date")Date date);

    void offsale(@Param("ids") List<Long> ids, @Param("date")Date date);
}
